package com.yzh.service;

import java.util.Scanner;

/**
 * @author 于振晗
 * @title: UserPlary
 * @description: TODO 用户玩家
 * @date 2020年08月29日
 * @path com.yzh.service
 */
public class UserPlayer extends Player {
    public UserPlayer(String name) {
        super(name);
    }

    @Override
    public int getInputValue() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请选择手势 0 [石头]  1 [剪刀]  2 [布]");
        int number = sc.nextInt();
        this.setValue(number);
        return number;
    }
}
